/* (C) 2007-2009 caitong Limited
 * (C) 2009-2012  limited
 *
 * Authors:
 * legs.ant.king@gmail.com


   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
#include <iostream>
#include <stdlib.h>
using namespace std;
void usage(char **argv)
{

cout<<"\n"<<argv[0]<<" Usage :\n\t-u | --user  Database username \n\t\
-p | --password Database password \n\t\
-a | --address Remote or localhost IP adress or hostname \n\t\
-P | --port  Remote or Localhost Port List  \n\t\
-b | --database  dbname Default test \n\t\
-s | --socket Mysql Socket Path \n\t\
-c | --config Config file Path ; default use /etc/repmsg.cnf \n\t\
-f | --Smobile  Source sent phone Number\n\t\
-g | --Spassword  Resouce sent message phone Password \n\t\
-m | --mobile  destation phone list use example: 150112211122,15122112211\n\t\
-h | --help  display this information and exit \n\t-l | --log  log file path . \n\t\
-W | --maxwarning   max warning values \n\t\
-d | --daemon  Running to deamon mode . \n\t\
-e | --errcount  error count sent message . \n\t\
-L | --sleep  program sleep time \n\t\
-w | --warcount  than maxwarning count sent msg . \n\t\
-C | --sentcount While sent Msg Reach specify count ,not sent Msg\n\t\
-K | --prosleep Sent msg than aot sleep time .\n\t\
-M | --mail whether Send email ? 1 Send 0 can't Send .\n\t\
-E | --email Send to email recevied mail listbox as 'abc@gmail.com,cbd@msn.com'.\n\t\
-R | --inisend Resouce Send message information contact email address .\n\t\
-J | --ecount Send email count ...\n\t\
-n | --nomsg can't sent message .\n\n\
-v | --version Display Version\n\t\
Report Bug by legs.ant.king@gmail.com"<<endl;
		exit(0);
}

void iInfo()
{
	cout<<"Note: This program check Mysql Replcation , \
	You in config file specify Error count and Warning count then Sent Msg and Warning Replication\
	 Value,default 10 20 4000\nwhile sent count tow then not sent msg 10 Muitil\n";
}
